%%%-------------------------------------------------------------------
%%% @author mirahs(2892727493@qq.com)
%%% @doc
%%%     mnesia 处理器
%%% @end
%%%-------------------------------------------------------------------
-module(db_mnesia_handler_tpl).

-export([
    get_ver/0
    ,get_tables/0

    ,ver_upgrade_before/0
    ,ver_upgrade/1
    ,init_after/0
]).

-include("mnesia.hrl").

-define(ver, 1).


%%%===================================================================
%%% API functions
%%%===================================================================

get_ver() ->
    ?ver.

get_tables() ->
    [
        #mnesia_table{table = mnesia_info, record_name = mnesia_info, attributes = record_info(fields, mnesia_info), copies = disc_copies, index = []}
    ].


ver_upgrade_before() ->
    ok.

ver_upgrade(?ver) ->
    ok.

init_after() ->
    ok.
